﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="instrumentscrappedquery.aspx.cs"
    Inherits="LabMS.Web.Equipment.Instrument.instrumentscrappedquery" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>仪器报废汇总</title>
    <link type="text/css" rel="stylesheet" href="../../style/screen.css" />
    <link href="../../css/jquery.wysiwyg.css" rel="stylesheet" type="text/css" />
    <!--[if lte IE 6]>
    <link type="text/css" rel="stylesheet" href="../../style/ie6.css" />
    <![endif]-->
    <!--[if lte IE 7]>
    <link type="text/css" rel="stylesheet" href="../../style/ie7.css" />
    <![endif]-->

    <script src="../../js/calendar5.js" type="text/javascript"></script>

    <script type="text/javascript" src="../../js/Common.js"></script>

    <script type="text/javascript">
        var c = new Calendar("c");
        document.write(c);
    </script>

</head>
<body class="mainBody">
    <form id="form1" runat="server">
        <div class="main">
            <div id="pageInfo" class="clearfix">
                <div class="title">
                    <label>
                        仪器报废汇总</label>
                </div>
            </div>
        </div>
        <div class="main">
            <p>
                <asp:Button ID="lbEduce" CssClass="button" runat="server" Text="导出到EXCEL" />
            </p>
            <p>
                查询列<asp:DropDownList ID="ddlCClass" runat="server" Height="23px" Width="100px">
                    <asp:ListItem Value="Name">名称</asp:ListItem>
                    <asp:ListItem Value="Numbers">编号</asp:ListItem>
                </asp:DropDownList>
                关键字<asp:TextBox ID="tbKeyWords" runat="server"></asp:TextBox>
                <asp:Button ID="Button1" runat="server" CssClass="button" Text="搜  索" OnClick="Button1_Click" />
                <asp:Button ID="lbRefresh" runat="server" CssClass="button" Text="重　置" OnClick="lbRefresh_Click" />
            </p>
        </div>
        <div class="main">
            <asp:GridView ID="gvInstrument" runat="server" Width="100%" PageSize="20" AllowPaging="true"
                DataKeyNames="ID" AutoGenerateColumns="False" OnPageIndexChanging="GridViewConsum_PageIndexChanging"
                CssClass="infoTable">
                <Columns>
                    <asp:BoundField DataField="Numbers" HeaderText="实验仪器编号" />
                    <asp:BoundField DataField="Name" HeaderText="实验仪器名称" />
                    <asp:BoundField DataField="Model" HeaderText="型号" SortExpression="Model" />
                    <asp:BoundField DataField="Applicant" HeaderText="申请人" />
                    <asp:BoundField DataField="ReportedTime" HeaderText="申请时间" />
                    <asp:BoundField DataField="Status" HeaderText="状态" />
                    <asp:BoundField DataField="Describe" HeaderText="原因" />
                </Columns>
                <HeaderStyle CssClass="header" />
                <RowStyle HorizontalAlign="Center" />
                <EmptyDataTemplate>
                    <a style="color: Red">无数据</a>
                </EmptyDataTemplate>
            </asp:GridView>
        </div>

        <script type="text/javascript" src="../../js/jQuery/jquery-1.3.1.js"></script>

        <script type="text/javascript">

        $(function(){
            /* 修改样式 */
            $("#gvInstrument > tbody > tr:even").not(":first").addClass("even");
            $("#gvInstrument > tbody > tr").not(":first")
                .hover(
                    function(){
                        $(this).addClass("hover");
                    },
                    function(){
                        $(this).removeClass("hover");
                })
                .css("cursor","pointer");

        });
        </script>

    </form>
</body>
</html>
